package com.coolingme.trycatch;

/**
 * @author wangyue
 * @date 2025/01/15 13:53
 */
public class TryReturn {

    public static void main(String[] args) {
        String result = getResult();
    }

    private static String getResult() {
        try {
            System.out.println(1 / 0);
        } catch (Exception e) {
            e.printStackTrace();
            return "fail";
        } finally {
            System.out.println("finally");
           return "finally";
        }
    }

}
